/*
 * Date：10/23/18 10:15 PM
 * Author: guomw
 *
 */

package org.elanfox.intellicommunity.biz.service.core.resident;


import org.elanfox.intellicommunity.biz.dto.NodeDto;
import org.elanfox.intellicommunity.biz.entity.resident.StructurePO;
import org.elanfox.intellicommunity.biz.vo.UserCountVo;
import org.elanfox.intellicommunity.data.base.base.SearchableCrudService;

import java.util.List;

/**
 * 社区service
 *
 * @author loutianxi
 * @date 2019-12-6
 */
public interface StructureService extends SearchableCrudService<StructurePO, Integer> {

    /**
     * 获取社区树
     *
     * @return
     */
    List<NodeDto> findTree();

    boolean deleteStr(Integer id);

    NodeDto findNode(Integer id);

    /**
     * 统计所有人当前定位
     *
     * @return
     */
    List<UserCountVo> userCount(Integer structureId);

    /**
     * 获取子节点
     * @param structureId
     * @return
     */
    List<StructurePO> findChildren(Integer structureId);


}
